package com.yanqu.road.entity.activity.summerquiz;

import com.yanqu.road.entity.activity.ActivityInfo;
import com.yanqu.road.entity.activity.summerquiz.config.SummerQuizInfo;

import java.util.List;

public class SummerQuizConfig {

    private ActivityInfo activityInfo;

    private List<SummerQuizInfo> quizInfoList;

    public SummerQuizConfig(ActivityInfo activityInfo) {
        this.activityInfo = activityInfo;
    }

    public ActivityInfo getActivityInfo() {
        return activityInfo;
    }

    public void setActivityInfo(ActivityInfo activityInfo) {
        this.activityInfo = activityInfo;
    }

    public List<SummerQuizInfo> getQuizInfoList() {
        return quizInfoList;
    }

    public void setQuizInfoList(List<SummerQuizInfo> quizInfoList) {
        this.quizInfoList = quizInfoList;
    }

    public SummerQuizInfo getSummerQuizInfo(int id){
        for (SummerQuizInfo quizInfo : quizInfoList) {
            if(quizInfo.getId() == id){
                return quizInfo;
            }
        }
        return null;
    }

    public SummerQuizInfo findLastNeedSettleGuess(long dayZeroTime){
        SummerQuizInfo find = null;
        for (SummerQuizInfo info : quizInfoList) {
            if(info.getDate() <= dayZeroTime){
                find = info;
            }
        }
        return find;
    }

    //赔率范围（千分比)
    private List<Integer> oddsRangeList;

    //每x秒改变一次赔率
    private int SUMMERQUIZ_ODDS_CHANGE_TIME;

    //赔率公式参数
    private List<Integer> OddsParamList;

    //元宝底注
    private int SUMMERQUIZ_BULLIONS_ANTE;

    //输家给的固定元宝
    private int SUMMERQUIZ_LOSER_GET_BULLIONS;

    public List<Integer> getOddsRangeList() {
        return oddsRangeList;
    }

    public void setOddsRangeList(List<Integer> oddsRangeList) {
        this.oddsRangeList = oddsRangeList;
    }

    public int getSUMMERQUIZ_ODDS_CHANGE_TIME() {
        return SUMMERQUIZ_ODDS_CHANGE_TIME;
    }

    public void setSUMMERQUIZ_ODDS_CHANGE_TIME(int SUMMERQUIZ_ODDS_CHANGE_TIME) {
        this.SUMMERQUIZ_ODDS_CHANGE_TIME = SUMMERQUIZ_ODDS_CHANGE_TIME;
    }

    public List<Integer> getOddsParamList() {
        return OddsParamList;
    }

    public void setOddsParamList(List<Integer> oddsParamList) {
        OddsParamList = oddsParamList;
    }

    public int getSUMMERQUIZ_BULLIONS_ANTE() {
        return SUMMERQUIZ_BULLIONS_ANTE;
    }

    public void setSUMMERQUIZ_BULLIONS_ANTE(int SUMMERQUIZ_BULLIONS_ANTE) {
        this.SUMMERQUIZ_BULLIONS_ANTE = SUMMERQUIZ_BULLIONS_ANTE;
    }

    public int getSUMMERQUIZ_LOSER_GET_BULLIONS() {
        return SUMMERQUIZ_LOSER_GET_BULLIONS;
    }

    public void setSUMMERQUIZ_LOSER_GET_BULLIONS(int SUMMERQUIZ_LOSER_GET_BULLIONS) {
        this.SUMMERQUIZ_LOSER_GET_BULLIONS = SUMMERQUIZ_LOSER_GET_BULLIONS;
    }
}
